package com.tedu.charging.service.bill.feignclient;

import com.tedu.charging.common.pojo.param.UpdateGunStatusParam;
import com.tedu.charging.common.pojo.po.GunStationPO;
import com.tedu.charging.common.pojo.vo.GunInfoVO;
import com.tedu.charging.common.pojo.web.ServerResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient("deviceService")
//@RequestMapping(""),接口不能加RequestMapping
public interface DeviceClient {

    @PostMapping("/charging/GunInfo/updateGunStatus")
    public ServerResult<Boolean> updateGunStatus( UpdateGunStatusParam param);
    @GetMapping("/charging/GunInfo/selectByGunId/{gunId}")
    public ServerResult<GunInfoVO> selectByGunId(@PathVariable("gunId") Integer gunId);
    @GetMapping("/charging/GunInfo/selectStationByGunId/{gunId}")
    public ServerResult<GunStationPO> selectStationByGunId(@PathVariable("gunId") Integer gunId);
}
